package com.ffyc.ssm.dao;

import com.ffyc.ssm.modle.Ad;
import com.ffyc.ssm.modle.News;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Repository
public interface NewsDao {


    //查询新闻列表
    List<News> findList();

    void addNews(Map map);

    void delete(@Param("id") Integer id);

    @Options(useGeneratedKeys = false)
    void update(@Param("id")Map<String, String> map);

    News findNews(@Param("id") Integer id);

    void pass(@Param("id")Integer id);

    void unPass(@Param("id")Integer id);


    List<News> passList();
}
